<?php
header("Content-Type: application/json; charset=UTF-8");
require $_SERVER['DOCUMENT_ROOT'].'/SBWebServer/Action/JSON.php';

// create a new instance of Services_JSON
$json = new Services_JSON();
$data = urldecode(file_get_contents("php://input"));
$output = $json -> encode($data);

$file = $_SERVER['DOCUMENT_ROOT'].'/SBWebServer/ApplistDB/people.txt'; // id_applist.txt 로 저장한다.
$current = $output;
file_put_contents($file, $current);
echo $data;
?>
